package com.gusti.admincasa.client.udp;

import java.net.InetAddress;
import java.util.Date;

import com.gusti.admincasa.client.util.DataUDP;
import com.gusti.admincasa.client.util.Debug;

/**
 * 
 * @author gusti
 * 
 */
public class ClientUDP {

	public ClientUDP() throws Exception {

		InetAddress inetAddress = InetAddress.getLocalHost();

		//armo los datos
		DataUDP data = new DataUDP();
		data.setUuid( String.valueOf( new Date().getTime() ) );
		data.setUserName( System.getProperty( "user.name" ) );
		data.setComputerName( inetAddress.getCanonicalHostName() );

		Debug.log( "Client started" );

		//inicio el thread
		new ClientUDPThread( data ).start();

	}

}
